package com.sunspring.zdcall.quartz.constant;

import lombok.Getter;

/**
 * @author wulei
 * @date 2018-12-27
 **/
@Getter
public enum DefaultCornExpress {


    /**
     * 默认的corn表达式
     */
    TWO_SECONDS_INTERVAL("2秒钟执行一次","0/2 * * * * ?"),
    FIVE_SECONDS_INTERVAL("5秒钟执行一次","0/5 * * * * ?"),
    TEN_SECONDS_INTERVAL("10秒钟执行一次","0/10 * * * * ?"),
    THIRTY_SECONDS_INTERVAL("30钟执行一次","0/30 * * * * ?"),
    ONE_MINUTER_INTERVAL("1分钟执行一次","* 0/1 * * * ?");


    private String title;

    private String corn;

    DefaultCornExpress(String title, String corn) {
        this.title = title;
        this.corn = corn;
    }
}
